<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/2 0002
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="jquery/jquery-3.0.0.min.js"></script>
    <script>
        $(function () {
            $(":text").keyup(function () {
                $.ajax({
                    type:"post",
                    url:"${pageContext.request.contextPath}/llservlet",
                    data:"num=3",
                    dataType:"json",
                    success:function (msg) {
                       console.log(msg[1])
                    }
                })
            })
        })
    </script>
</head>
<body>
    <input type="text"> <br>
</body>
</html>
